package com.lengyu.vxminiprogram.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lengyu.vxminiprogram.dto.InstanceMonsterDto;
import com.lengyu.vxminiprogram.entity.InstanceMonster;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface IInstanceMonsterConverter {
    InstanceMonster dtoToEntity(InstanceMonsterDto dto);
    InstanceMonsterDto entityToDto(InstanceMonster entity);
    List<InstanceMonsterDto> listEntityToDto(List<InstanceMonster> entityList);
    List<InstanceMonster> listDtoToEntity(List<InstanceMonsterDto> dtoList);
    Page<InstanceMonsterDto> pageEntityToDto(Page<InstanceMonster> entityPage);
}
